package com.zhuodewen.ai.dto.springai;

import lombok.extern.slf4j.Slf4j;
import org.springframework.ai.tool.annotation.Tool;

/**
 * 自定义AI工具
 */
@Slf4j
public class SpringAiTool {

    @Tool(name = "getWeather", description = "getWeather-获取天气")
    String getWeather(String city) {
        log.info("获取天气信息:{}", city);
        return "今天是晴天";
    }


}
